<template>
  <div id="app">
    <van-loading
      :style="{ display: showLoading ? 'block' : 'none' }"
      style="
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate3d(-50%, -50%, 0);
        z-index: 99;
      "
      type="spinner"
      color="#999"
      vertical
      >加载中...</van-loading
    >
    <router-view />
  </div>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    ...mapState(["showLoading"]),
  },
};
</script>


<style>
@import "./assets/scss/reset.scss";
@import "./assets/scss/myicon/iconfont.css";

#app {
  /* font-family: Helvetica, Arial, sans-serif; */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #333;
  width: 100%;
  height: 100%;
}

#nav {
  padding: 30px;
}

#nav a {
  font-weight: bold;
  color: #2c3e50;
}

#nav a.router-link-exact-active {
  color: #42b983;
}
.myBar {
  position: fixed;
  left: 0;
  bottom: 0;
}
</style>
